import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'qzd-basic-ui'
import actions from './actions'
import 'qzd-basic-ui/dist/index.css'
import './assets/main.css'
import './assets/scrollbar.scss'
import '@/utils/arms.js'
import { shenceInit } from 'qzd-v3-busicompo/lib/shence/index'
import QzdVue from 'qzd-v3-busicompo'
import 'qzd-v3-busicompo/lib/style.css'


import * as ElementPlusIconsVue from 'qzd-basic-icon'

const app = createApp(App)

shenceInit()
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.provide('$actions', actions)
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(QzdVue, { envName: import.meta.env })

app.mount('#app')
